Skip to content

chore: lint rules, lint everything - #1485

Open
closetcaiman wants to merge 1 commit into
chore/formattingfrom
chore/lint-review
Open

closetcaiman wants to merge 1 commit into
chore/formattingfrom
chore/lint-review

Conversation

@closetcaiman

@closetcaiman closetcaiman commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

⚠️ Breaking changes ⚠️

  • None.

Introduced changes

  • enabled oxlint's correctness category as error, the rules that were explicitly off before stay off
    • React Compiler rules (refs, immutability, set-state-in-effect, purity, preserve-manual-memoization) are warn for now, fixing the 17 findings should be researched -> separate PR
  • every package lints its own sources in check: audio-api tests, test-app-screen, common-app, audiodocs and internaldocs
  • fixed the findings this surfaced
  • warnings don't fail check
  • common-app keeps its nested @react-native config, with exhaustive-deps as warn and no-floating-promises off as in the library

Summary by CodeRabbit

  • Bug Fixes

    • Improved time-domain visualization by sizing its data from the analyser’s configured FFT size.
    • Corrected the play/pause icon’s default so an unspecified playback state displays the play icon.
    • Improved error messages in audio recording and decoding examples by consistently displaying caught errors.
  • Updates

    • Audio playback examples now create buffer sources synchronously, keeping playback actions aligned with the audio API’s behavior.

@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 975c2cd2-865b-4bcd-af90-1c941a54f5f4
Commits

Reviewing files that changed from the base of the PR and between 307e417 and 75312fa.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

Oxlint rules and package check scripts change across the repository. App and documentation code receive lint-related updates, along with selected audio playback, error handling, plugin, and test changes.

Changes: Lint rollout and code updates

Layer / File(s) Summary
Lint rules and package checks
.oxlintrc.json, apps/common-app/.oxlintrc.json, apps/common-app/package.json, packages/audiodocs/package.json, packages/internaldocs/package.json, packages/react-native-audio-api/package.json, packages/test-app-screen/package.json
Oxlint rules and package scripts change. Checks add linting or extend the Oxlint target to include tests.
Common app lint updates and behavior
apps/common-app/src/components/*, apps/common-app/src/demos/*, apps/common-app/src/examples/*, apps/common-app/src/other/*
The app updates gesture scheduling, icon defaults, error formatting, callback annotations, and stress-test finalization.
Audio utilities and shared components
packages/audiodocs/src/audio/*, packages/audiodocs/src/canvasUtils/*, packages/audiodocs/src/components/*
Audio utilities, hooks, effects, canvas drawing, and shared components receive API, lint, and implementation updates. createDelay drops its feedback and wet parameters.
Interactive playground playback updates
packages/audiodocs/src/components/InteractivePlayground/*
Interactive examples remove asynchronous wrappers around synchronous audio-node creation. Promise handling and callback property declarations also change.
Documentation examples and rendering updates
packages/audiodocs/src/examples/*, packages/audiodocs/src/landingComponents/*, packages/audiodocs/src/pages/index.tsx
Audio examples create buffer sources synchronously. Related rendering, import, and local binding updates are applied.
Audio API plugin and test updates
packages/react-native-audio-api/src/core/AudioParam.ts, packages/react-native-audio-api/src/plugin/withAudioAPI.ts, packages/react-native-audio-api/tests/*, packages/test-app-screen/src/*
The plugin and tests receive implementation and typing updates. Test-app error messages now explicitly convert caught errors to strings.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Other

Suggested reviewers: mdydek, michalsek, maciejmakowski2003

Merge Risk: Minimal · previous review 9bc46

This change enables stricter lint rules and adds lint steps to each package's check script, with small behavior-preserving code fixes to satisfy them. No concrete regression was found, so the change looks safe to merge, subject to a normal CI run of lint and typecheck.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title 'chore: lint rules, lint everything' matches the main change: Oxlint correctness rules are enabled as errors and every package now lints its own sources in check. It uses a conventional co…
Description check Passed The description follows the template. It has the Breaking changes section, stating none, and the Introduced changes section, which lists the lint rule changes, the per-package linting in check, and …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title 'chore: lint rules, lint everything' matches the main change: Oxlint correctness rules are enabled as errors and every package now lints its own sources in check. It uses a conventional commit prefix and is short. It is somewhat terse, but it names the primary change.

Full details: Description check

Explanation

The description follows the template. It has the Breaking changes section, stating none, and the Introduced changes section, which lists the lint rule changes, the per-package linting in check, and the fixes. The template's 'Closes #' issue reference and the Checklist are missing. The author did not link an issue, and the checklist items are not marked.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
Fix failing CI checks

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 97b98619-aebe-472e-ac6d-8f00928200ed
Commits

Reviewing files that changed from the base of the PR and between 3051428 and 9bc4611.

Files selected for processing: 68

  • .oxlintrc.json
  • apps/common-app/.oxlintrc.json
  • apps/common-app/package.json
  • apps/common-app/src/components/VerticalSlider.tsx
  • apps/common-app/src/components/icons/PlayPauseIcon.tsx
  • apps/common-app/src/demos/PedalBoard/AutoWahPedal.tsx
  • apps/common-app/src/demos/Record/Record.tsx
  • apps/common-app/src/examples/AudioTag/AudioTag.tsx
  • apps/common-app/src/examples/AudioVisualizer/Charts.tsx
  • apps/common-app/src/examples/DrumMachine/NotesHighlight.tsx
  • apps/common-app/src/examples/Record/Record.tsx
  • apps/common-app/src/other/AudioPipelineStress/AudioPipelineStress.tsx
  • apps/common-app/src/other/LatencyValidation/latencyTests.ts
  • packages/audiodocs/package.json
  • packages/audiodocs/src/audio/AudioManager.ts
  • packages/audiodocs/src/audio/Equalizer.ts
  • packages/audiodocs/src/audio/MockAudioContext.ts
  • packages/audiodocs/src/audio/effects.ts
  • packages/audiodocs/src/audio/useEqualizerControls.ts
  • packages/audiodocs/src/audio/useIsPlaying.ts
  • packages/audiodocs/src/audio/utils.ts
  • packages/audiodocs/src/canvasUtils/drawEqGrid.ts
  • packages/audiodocs/src/components/AnimableIcon/index.tsx
  • packages/audiodocs/src/components/InteractiveExample/index.tsx
  • packages/audiodocs/src/components/InteractivePlayground/AudioBufferSourceExample/AudioBufferSourceExample.tsx
  • packages/audiodocs/src/components/InteractivePlayground/EffectPlayground/sources.ts
  • packages/audiodocs/src/components/InteractivePlayground/EffectPlayground/useEffectChain.ts
  • packages/audiodocs/src/components/InteractivePlayground/EffectPlayground/useEffectPlayground.tsx
  • packages/audiodocs/src/components/InteractivePlayground/GainAdsrExample/GainAdsrExample.tsx
  • packages/audiodocs/src/components/InteractivePlayground/OscillatorExample/OscillatorExample.tsx
  • packages/audiodocs/src/components/InteractivePlayground/PeriodicWaveExample/PeriodicWaveExample.tsx
  • packages/audiodocs/src/components/InteractivePlayground/index.tsx
  • packages/audiodocs/src/examples/Biquad/BiquadExampleComponent.tsx
  • packages/audiodocs/src/examples/Biquad/FrequencyResponseGraph.tsx
  • packages/audiodocs/src/examples/Biquad/drawFrequencyResponse.tsx
  • packages/audiodocs/src/examples/LetsMakeSomeNoise/Component.tsx
  • packages/audiodocs/src/examples/NoiseGeneration/BrownianNoiseComponent.tsx
  • packages/audiodocs/src/examples/NoiseGeneration/PinkNoiseComponent.tsx
  • packages/audiodocs/src/examples/NoiseGeneration/WhiteNoiseComponent.tsx
  • packages/audiodocs/src/examples/SeeYourSound/BaseComponent.tsx
  • packages/audiodocs/src/examples/SeeYourSound/BaseSource.tsx
  • packages/audiodocs/src/examples/SeeYourSound/CanvasSizerComponent.tsx
  • packages/audiodocs/src/examples/SeeYourSound/FrequencyDomainComponent.tsx
  • packages/audiodocs/src/examples/SeeYourSound/TimeDomainComponent.tsx
  • packages/audiodocs/src/examples/SeeYourSound/TimeDomainSource.tsx
  • packages/audiodocs/src/examples/SimplePiano/EnvelopesComponent.tsx
  • packages/audiodocs/src/examples/SimplePiano/EnvelopesSource.tsx
  • packages/audiodocs/src/examples/SimplePiano/FinalComponent.tsx
  • packages/audiodocs/src/examples/SimplePiano/ItHangsComponent.tsx
  • packages/audiodocs/src/examples/SimplePiano/ItHangsSource.tsx
  • packages/audiodocs/src/examples/SimplePiano/PressOutComponent.tsx
  • packages/audiodocs/src/examples/SimplePiano/PressOutSource.tsx
  • packages/audiodocs/src/examples/VinylPlayer/VinylPlayer.tsx
  • packages/audiodocs/src/landingComponents/FooterBackground/index.tsx
  • packages/audiodocs/src/landingComponents/LandingWidget/Spectrogram/index.tsx
  • packages/audiodocs/src/pages/index.tsx
  • packages/internaldocs/package.json
  • packages/react-native-audio-api/package.json
  • packages/react-native-audio-api/src/core/AudioParam.ts
  • packages/react-native-audio-api/src/plugin/withAudioAPI.ts
  • packages/react-native-audio-api/tests/audio-context-options.test.ts
  • packages/react-native-audio-api/tests/audio-decoder.test.ts
  • packages/react-native-audio-api/tests/convolver-buffer.test.ts
  • packages/react-native-audio-api/tests/remote-http-source.test.ts
  • packages/test-app-screen/package.json
  • packages/test-app-screen/src/AudioBufferTest.ts
  • packages/test-app-screen/src/AudioTagTest.ts
  • packages/test-app-screen/src/RecorderTest.ts
Files with no reviewable changes: 9

  • apps/common-app/src/components/VerticalSlider.tsx
  • packages/audiodocs/src/canvasUtils/drawEqGrid.ts
  • packages/audiodocs/src/components/InteractivePlayground/index.tsx
  • packages/audiodocs/src/examples/SeeYourSound/BaseSource.tsx
  • packages/audiodocs/src/examples/SeeYourSound/TimeDomainSource.tsx
  • packages/audiodocs/src/examples/VinylPlayer/VinylPlayer.tsx
  • packages/audiodocs/src/landingComponents/FooterBackground/index.tsx
  • packages/audiodocs/src/pages/index.tsx
  • packages/react-native-audio-api/src/core/AudioParam.ts

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review.

@closetcaiman
closetcaiman added this pull request to stack #1486 November 20, 2026 17:55
@closetcaiman closetcaiman added the chore Routine maintenance, tooling updates, or task work with no src changes label Nov 20, 2026
@closetcaiman closetcaiman changed the title chore/lint review chore: lint rules, lint everything Nov 20, 2026
@closetcaiman
closetcaiman marked this pull request as ready for review November 20, 2026 18:07
@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

C++ coverage

Smoke suites, Clang source-based coverage.

Covered Total %
Lines 7771 10562 73.58%
Functions 1075 1338 80.34%
Regions 4029 5444 74.01%

Lines changed in this pull request

No changed lines with coverage information.

Workflow run · this comment is updated on every push.

@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

WPT non-regression comparison

PASS — no regressions · 0 improved section(s) · overall 3440 → 3440 (0)

Unchanged sections (28)
Spec section Base pass Head pass Delta
Processing model 1 1 0
Other 56 56 0
AnalyserNode 138 138 0
AudioBuffer 142 142 0
AudioBufferSourceNode 227 227 0
AudioContext 58 58 0
AudioNode 261 261 0
AudioParam 680 680 0
BiquadFilterNode 275 275 0
ChannelMergerNode 30 30 0
ChannelSplitterNode 7 7 0
ConstantSourceNode 64 64 0
ConvolverNode 182 182 0
DelayNode 127 127 0
DestinationNode 0 0 0
DynamicsCompressorNode 4 4 0
GainNode 15 15 0
IIRFilterNode 87 87 0
MediaElementAudioSourceNode 0 0 0
MediaStreamAudioDestinationNode 1 1 0
MediaStreamAudioSourceNode 0 0 0
OfflineAudioContext 35 35 0
OscillatorNode 104 104 0
PannerNode 727 727 0
PeriodicWave 33 33 0
ScriptProcessorNode 0 0 0
StereoPannerNode 104 104 0
WaveShaperNode 82 82 0

Baseline: 977a521a6984ed5bc73cb50ef50e2ab89a0df265 · Candidate: 75312fa4e07b17c394beccaa7a40b2a41d306400

Workflow run · this comment is updated on every push.

@github-actions github-actions Bot added the conflicts This PR has conflicts with the base branch. label Nov 20, 2026
@github-actions github-actions Bot removed the conflicts This PR has conflicts with the base branch. label Nov 20, 2026
Comment on lines 99 to +140
@@ -134,6 +136,8 @@ const FrequencyChart: React.FC<ChartProps> = (props) => {
);

const freqPath = useDerivedValue(() => {
// Reading the tick subscribes this derived value to new frequency data.
// oxlint-disable-next-line no-unused-expressions

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you try to refactor that code?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Routine maintenance, tooling updates, or task work with no src changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants